import request from "@/utils/request";

// 查询设备类型列表
export function listEquipmentType(query) {
  return request({
    url: "/equipment/type/treeselect",
    method: "get",
    params: query,
  });
}

// 新增设备类型
export function addEquipmentType(data) {
  return request({
    url: "/equipment/type",
    method: "post",
    data: data,
  });
}

// 查询设备类型信息详细
export function getEquipmentType(typeId) {
  return request({
    url: "/equipment/type/" + typeId,
    method: "get",
  });
}

// 修改设备类型
export function updateEquipmentType(data) {
  return request({
    url: "/equipment/type",
    method: "put",
    data: data,
  });
}

// 删除设备类型
export function delEquipmentType(typeIds) {
  return request({
    url: "/equipment/type/" + typeIds,
    method: "delete",
  });
}
